import logging


def init_app(logger):
    logger.setLevel(logging.DEBUG)
    fh = logging.FileHandler('/tmp/auth_server.log')
    fh.setLevel(logging.DEBUG)
    formatter = logging.Formatter('[%(asctime)s] {%(pathname)s:%(lineno)d} %(levelname)s - %(message)s')
    fh.setFormatter(formatter)
    logger.addHandler(fh)
